package com.briup.MR.funMR;

import java.util.StringTokenizer;

/**
 *
 */
public class StringSplitTest {
    public static void main(String[] args) {
        String str="i am a student come from suzhou";
        StringTokenizer st=new StringTokenizer(str," ");
//        while(st.hasMoreElements()){
//            System.out.println(st.nextElement());
//        }
        while (st.hasMoreTokens()){
            System.out.println(st.nextToken());
        }
    }
}
